<?php
return array(
	//'配置项'=>'配置值'
    //禁止模块访问
    'MODULE_DENY_LIST'=>array('Common','Runtime'),

    //允许模块访问
    'MODULE_ALLOW_LIST'=>array('Home','Admin'),

    'AUTOLOAD_NAMESPACE' => array(
        'Lib' => APP_PATH.'Lib',
    ),

    //默认模块
    'DEFAULT_MODULE' => 'Home',

    //模块映射
    'URL_MODULE_MAP' => array(
        //'user' => 'Home',
    ),

    // 开启路由
    'URL_ROUTER_ON' => true,

    //配置动态路由
    'URL_ROUTE_RULES'=>array(
        //每条键值对，对应一个路由规则
        //'u' => 'User/index',
        //'u/:id' => 'User/index',
        //'u/:id/:type/:attr/:list' => 'User/index',
        //'u/:id\d' => 'User/index',
        //'u/:id\d|md5' => 'User/index',
        //'u/[:id\d]' => 'User/index',
        //'u/:id\d$' => 'User/index',

        //'/^u\/(\d+)$/' => 'User/index?id=:1',
        //'/^u\/(\d+)$/' => 'User/index?id=:1|md5',

        //闭包测试功能
        //'u/:id'=>function($id) {
        //    echo $id;
        //}
    ),

    //配置静态路由
    'URL_MAP_RULES' => array(
        'admin' => 'Admin/Admin/index',
        'alogin' => 'Admin/Admin/login',
        'aloginout' => 'Admin/Admin/loginout',
        'admin/manager' => 'Admin/Manager/index',
        'admin/role' => 'Admin/Role/index',
        'admin/sys' => 'Admin/Sys/index',
        'admin/menu' => 'Admin/Menu/index',
        'admin/user' => 'Admin/User/index',

    ),

    //定义常量
    'TMPL_PARSE_STRING' => array(
        '__ADMIN__' => 'admin',
        '__ADMINTITLE__' => '交易中心后台管理',
        '__LOGINPAGE__' => 'login1',

        '__SITENAME__'=>'一指赢易购',

        '__UPLOAD__' => './Uploads',
        '__ALTE__' => './WebApp/Admin/View/Public/alte',
        '__SELF__' => './WebApp/Admin/View/Public/self',
        '__PLUGINS__' => './Public/plugins',
        '__LOGIN__' => './WebApp/Admin/View/Public/login',
        '__AUEDITOR__' => './Public/plugins/ueditor',
        '__FILEUPLOAD__' => './Public/plugins/jquery-fileupload',
        '__SHOPPING__' => '/Shangcheng',

        '__PAGESIZE__' => 10,

        '__BAOFENG__'=>'/WebApp/Home/View/Public/baofeng',

        '__NULLPHOTO__'=>'/Public/images/null_photo.jpg',

        '__NULLTUIGUANG__'=>'/Public/images/nottuiguan.gif',

        '__DOMAINURL__'=>'http://localhost:8899/getplan_4TEjId',
        '__SOCKETDOMAINURL__'=>'http://47.52.224.177:3097',
        '__WEBSITEDIR__' => '',

        '__QRCODEBGPATH__'=> '/QRCode',
        '__QRCODEBGNAME__'=> 'bg_QRCode',

        '__REBATELAYER__' => '2',
        '__REBATELAYERALIAS__' => '第二经纪人,第一经纪人',

        '__ISOPENVOUCHER__' => 0,

        '__REGISTDEFAULTCODE__'=>'888888',
    ),

    //session设置
    'SESSION_OPTIONS'         =>  array(
        'name'                =>  'BJYSESSION',                     //设置session名
        'expire'              =>  24*60*60,                     //SESSION保存两个小时
        'use_trans_sid'       =>  1,                                //跨页传递
        'use_only_cookies'    =>  0,                                //是否只开启基于cookies的session的会话方式
    ),


    'LOAD_EXT_CONFIG' => 'config,agent_config',

    //URL不区分大小写
    'URL_CASE_INSENSITIVE' => true,

    //默认模块
    //'DEFAULT_MODULE'=>'Admin',

    //单模块设置，只允许一个模块
    //'MULTI_MODULE'=>false,

    //设置PATHINFO的URL分隔符
    //'URL_PATHINFO_DEPR'=>'_',

    //修改视图目录
    'DEFAULT_V_LAYER' => 'View',
    //修改模板文件的后缀
    'TMPL_TEMPLATE_SUFFIX' => '.tpl',
    //修改模版目录
    //'VIEW_PATH' => './Public/',
    //设置默认主题
    'DEFAULT_THEME' => 'default',

    // 主题列表
    'THEME_LIST'=>'default',

    //修改定界符
    //'TMPL_L_DELIM' => '<{',
    //'TMPL_R_DELIM' => '}>',

    //MySQL全局定义
    /*'DB_TYPE'=>'mysql',
    'DB_HOST'=>'localhost',
    'DB_USER'=>'root',
    'DB_PWD'=>'root',
    'DB_NAME'=>'thinkphp',
    'DB_PORT'=>3306,
    'DB_PREFIX'=>'think_',*/

    //'LAYOUT_ON' => true,
    //'LAYOUT_NAME' => 'Public/layout',

    //PDO专用定义
    'DB_TYPE'=>'mysql',
    'DB_USER'=>'mgfhfgrtss',
    // 'DB_USER'=>'root',
    'DB_PWD'=>'fsdjflk543./sdfjds',
    'DB_PREFIX'=>'fs_',
    'DB_DSN'=>'mysql:host=47.52.224.177;dbname=sdfsdftrrrrrrse;charset=UTF8',

    //页面Trace
    'SHOW_PAGE_TRACE'=>false,
);